package com.cn.demo;

import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;

import com.alibaba.excel.EasyExcel;
import com.alibaba.excel.ExcelWriter;
import com.alibaba.excel.write.metadata.WriteSheet;

public class ExcelWriterUri {
	
	public static void main(String[] args) {
		String fileName = "D:\\01.xlsx";
		
		EasyExcel.read(fileName,DemoData.class,new EasyExcelListener()).sheet().doRead();
//		InputStream inputStream = new BufferedInputStream(new FileInputStream())
//		ExcelWriter excelWriter = EasyExcel.write(fileName,DemoData.class).build();
//		WriteSheet writerSheet = EasyExcel.writerSheet("写入").build();
//		
//		excelWriter.write(data(), writerSheet);
	}
	
	
//	private static List<DemoData> data(){
//		
//		List<DemoData> list = new ArrayList<DemoData>();
//		
//		for(int i = 0;i<10;i++) {
//			DemoData data = new DemoData();
//			data.setSno(i);
//			data.setSname("张三"+i);
//			list.add(data);
//		}
//		return list;
//	}

}
